package com.wosiliujing.learning.fallback;

import com.wosiliujing.learning.admin.dto.UserInfo;
import com.wosiliujing.learning.admin.po.SysLog;
import com.wosiliujing.learning.admin.po.SysUser;
import com.wosiliujing.learning.service.RemoteSysUserService;
import com.wosiliujing.learning.util.R;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author: liujing
 * @date: 2019/5/4 17:22
 * @description:
 */
@Slf4j
@Component
public class RemoteSysUserFallbackImpl implements RemoteSysUserService {

    @Setter
    private Throwable cause;


    @Override
    public R<UserInfo> info(String userName, String from) {
        log.error("feign获取用户信息失败",userName,cause);
        return null;
    }
}
